// 学员来源
import { axios } from '@/utils/request'
export function sourceList(params) {
    return axios({
        url: '/school/sources',
        method: 'post',
        data: params
    })
}



export function addSource(params) {
    return axios({
        url: '/school/sources/batch-add',
        method: 'post',
        data: params
    })
}
export function changeSourceType(params, id) {
    return axios({
        url: '/school/sources/' + id + '/enable-status',
        method: 'post',
        data: params
    })
}

export function delSource(params) {
    return axios({
        url: '/school/sources/batch-delete',
        method: 'post',
        data: params
    })
}
export function changeSource(params, id) {
    return axios({
        url: '/school/sources/' + id + '/update',
        method: 'post',
        data: params
    })
}

